package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.TourCity;
import com.ruoyi.system.domain.vo.CityVo;
import com.ruoyi.system.mapper.TourCityMapper;
import com.ruoyi.system.service.ITourCityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TourCityService implements ITourCityService {

    @Autowired
    private TourCityMapper cityMapper;

    @Override
    public List<TourCity> selectCityList() {
        return cityMapper.selectCityList();
    }

    @Override
    public CityVo cityDetail(int cityId) {
        return cityMapper.selectCityDetail(cityId);
    }

    @Override
    public TourCity cityDetails(int cityId) {
        return cityMapper.selectCityDetails(cityId);
    }
}
